package com.braska.grave.netty.annotation;

import com.braska.grave.netty.bean.aware.NettyClientApplicationContextAware;
import com.braska.grave.netty.bean.NettyFactoryBean;
import com.braska.grave.netty.bean.registrar.NettyClientScannerRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Documented
@Import({NettyClientScannerRegistrar.class, NettyClientApplicationContextAware.class})
public @interface NettyClientScan {

    String[] basePackages();

    Class<? extends NettyFactoryBean> factoryBean() default NettyFactoryBean.class;
}
